package com.weaver.drools.business.execution.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.weaver.drools.business.execution.service.IASfAccidentdetails1039Service;
import com.weaver.drools.common.dao.ASfAccidentdetails1039Dao;
import com.weaver.drools.common.entity.ASfAccidentdetails1039;
@Service
public class ASfAccidentdetails1039ServiceImpl implements IASfAccidentdetails1039Service {

	@Autowired
	private ASfAccidentdetails1039Dao ASfAccidentdetails1039Dao;
	@Override
	public ASfAccidentdetails1039 findById(Long accidentdetailsid) {
		// TODO Auto-generated method stub
		return ASfAccidentdetails1039Dao.findASfAccidentdetails1039ByAccidentdetailsid(accidentdetailsid);
	}

	@Override
	public void saveASfAccidentdetails1039(ASfAccidentdetails1039 sfAccidentdetails1039) {
		ASfAccidentdetails1039Dao.saveOrUpdate(sfAccidentdetails1039);
	}

	@Override
	public void updateASfAccidentdetails1039(ASfAccidentdetails1039 sfAccidentdetails1039) {
		ASfAccidentdetails1039Dao.saveOrUpdate(sfAccidentdetails1039);
	}

	@Override
	public void deleteById(Long accidentdetailsid) {
		ASfAccidentdetails1039Dao.deleteById(accidentdetailsid);
	}

}
